@model Blogs.LazyFox.Models.TagModel

@{
    ViewData["Title"] = "Stick";
}

<h1>添加一个标签！</h1>

<hr />
<div class="row">
    <div class="col-md-4">
        <form asp-action="Stick">
            <div asp-validation-summary="ModelOnly" class="text-danger"></div>
            <input type="hidden" name="bid" value="@Model.MarkedBlog.Bid" />

            <div class="form-group">
                <label asp-for="Name" class="control-label">标签名</label>
                <input asp-for="Name" class="form-control" />
                <span asp-validation-for="Name" class="text-danger"></span>
            </div>
            <div class="form-group">
                <input type="submit" value="Create" class="btn btn-primary" />
            </div>

        </form>
    </div>
</div>

<div>
    <a asp-controller="blog" asp-action="Read" asp-route-bid="@Model.MarkedBlog.Bid">返回</a>
</div>

@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
